package com.xhsj.user.hr.process.hrBecomeRegular.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xhsj.user.hr.base.BaseEntity;
import java.time.LocalDate;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * hr流程_转正申请表
 * </p>
 *
 * @author liuqinghua
 * @since 2020-09-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_hr_approval_become_regular_apply")
public class TbHrApprovalBecomeRegularApply extends BaseEntity<TbHrApprovalBecomeRegularApply> {

    private static final long serialVersionUID = 1L;

    /**
     * 部门id 逻辑外键 tb_global_organization 表id
     */
    @TableField("department_id")
    private Long departmentId;

    /**
     * 职位id 逻辑外键 tb_global_organization 表id
     */
    @TableField("position_id")
    private Long positionId;

    /**
     * 工作年限
     */
    @TableField("years_working")
    private String yearsWorking;

    /**
     * 身份证号
     */
    @TableField("id_card")
    private String idCard;

    /**
     * 最高学历
     */
    @TableField("highest_education")
    private String highestEducation;

    /**
     * 入职日期
     */
    @TableField("arrival_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date arrivalDate;

    /**
     * 计划转正日期
     */
    @TableField("positive_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date positiveDate;

    /**
     * 自我评价
     */
    @TableField("self_assessment")
    private String selfAssessment;

    /**
     * 自我不足
     */
    @TableField("self_lack")
    private String selfLack;

    /**
     * 自我评价得分
     */
    @TableField("self_score")
    private Integer selfScore;

    /**
     * 公司评价得分
     */
    @TableField("leader_score")
    private Integer leaderScore;

    /**
     * 部门名称
     */
    @TableField("department_name")
    private String departmentName;

    /**
     * 职位名称
     */
    @TableField("position_name")
    private String positionName;

    /**
     * 转正类型 0提前转正 1按期转正 3延期转正 4淘汰 5调岗
     */
    @TableField("become_regular_type")
    private Integer becomeRegularType;

    /**
     * 转正类型意见
     */
    @TableField("become_regular_type_opinion")
    private String becomeRegularTypeOpinion;

    /**
     * 综合意见
     */
    @TableField("comprehensive_opinion")
    private String comprehensiveOpinion;


    /**
     * 审核信息
     */
    @TableField("node_id")
    private long nodeId;

    /**
     * 节点名称
     */
    @TableField("node_name")
    private String nodeName;

    /**
     * 流程id 外键  tb_global_business id
     */
    @TableField("business_id")
    private Long businessId;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;


}
